﻿#include "InstructionTurnTableConnect.h"

__SCRIPTINSTRUCTION_REGISTER(InstructionTurnTableConnect,ScriptInstruction::Instruction_TurnTable_Connect,&InstructionTurnTableConnect::fromByteArray1);

InstructionTurnTableConnect::InstructionTurnTableConnect()
{
  instructionFlag = Instruction_TurnTable_Connect;
}

InstructionTurnTableConnect::InstructionTurnTableConnect(InstructionTurnTableConnect const& instructionTurnTableConnect)
{
  *this=instructionTurnTableConnect;
}

InstructionTurnTableConnect& InstructionTurnTableConnect::operator=(InstructionTurnTableConnect const & instructionTurnTableConnect)
{
  *(ScriptInstruction*)this=instructionTurnTableConnect;
  return *this;
}

InstructionTurnTableConnect::~InstructionTurnTableConnect()
{}

QString InstructionTurnTableConnect::toString()
{
  return QStringLiteral("连接转台");
}

QByteArray InstructionTurnTableConnect::toByteArray()
{
  return ScriptInstruction::toByteArray();
}

InstructionTurnTableConnect* InstructionTurnTableConnect::clone()
{
  return new InstructionTurnTableConnect(*this);
}

ScriptInstruction* InstructionTurnTableConnect::fromByteArray1(char * const src,int size,int * offset)
{
  (void)src;
  (void)size;
  (void)offset;
  return new InstructionTurnTableConnect();
}
